package com.chaofan.authsso.client.common;

/**
 * 系统错误码和其他常量
 * Author: Chaofan
 * Date: 2020/6/4 14:24
 * email: chaofan2685@qq.com
 */
public interface Constant {

    Integer INTERNAL_SERVER_ERROR=8500;//服务器内部错误。
    Integer CREATE_NEW_TOKEN=8301;//服务端重新生成了新token。
    Integer SUCCESS=8200;//成功
    Integer NOT_LOGIN=8302;//未登录
    Integer APPLY_TOKEN=8304;//需要替换token
    String NOT_LOGIN_MESSAGE="登录失效，即将跳转登陆页...";//未登录
    String BEGIN_CHECK_TOKEN_STR="开始校验token";
    String BEGIN_APPLY_TOKEN_STR="开始申请token";
    String BEGIN_INVALIDATE_TOKEN_STR="开始注销token";
    String AUTH_SSO_LOGIN_URL="/authsso/login/";
    String AUTH_SSO_CHECK_TOKEN_URL="/authsso/token/check/";
    String AUTH_SSO_APPLY_TOKEN_URL = "/authsso/token/apply/";
    String AUTH_SSO_INVALIDATE_TOKEN_URL = "/authsso/token/invalidate/";
    String AUTH_SSO_LOG_HEADER = "AUTH-SSO-----------------";
    String DEFAULT_TOKEN_NAME = "authsso-token";
    String AUTH_SSO_FILTER_BEGIN_STR = "请求进入AUTH_SSO过滤器";
    String URL_IN_WHITELISTS_STR = "该请求在白名单中，不作处理";
    String AUTH_SSO_TOKEN_NAME_STR = "AUTH_SSO_TOKEN";
    String TOKEN_NAME_STR = AUTH_SSO_TOKEN_NAME_STR+":";
    String CHECK_TOKEN_OK_STR = "token校验通过";
    String CHECK_TOKEN_FAILURE_STR = "token校验失败";
    String AUTH_SSO_TOKEN_APPLY_STR = "token更新为:";
    String CONTENT_TYPE_KEY = "Content-Type";
    String CONTENT_TYPE_VALUE = "application/json;charset=UTF-8";
    String AUTH_SSO_FILTER_NAME_STR = "AuthSsoFilter";
    String AUTH_SSO_SERVICE_TEST_URL="/authsso/service/check";
    String AUTH_SSO_FILTER_ERROR_HEADER = "auth-sso filter error:";
    String AUTH_SSO_SERVICE_CONNECTION_FAILED = "auth-sso服务端连接失败";
    String AUTH_SSO_SERVICE_CONNECTION_SUCCEEDED = "auth-sso服务端连接成功";
    String AUTH_SSO_SERVICE_CHECK_STR="开始校验中心端服务是否正常";

}